import { createApp } from 'vue'
import App from './App.vue'

import QIcon from '@qing-design/components/icon'
import QTree from '@qing-design/components/Tree'
import QCheckBox from '@qing-design/components/checkbox'
import QButton from '@qing-design/components/button'
import QInput from '@qing-design/components/input'
import { QFormItem, QForm } from '@qing-design/components/form'
import QUpload from '@qing-design/components/upload'
import QCalendar from '@qing-design/components/calendar'
import QVirtualScrollList from '@qing-design/components/virtual-scroll-list'

import '@qing-design/theme-chalk/src/index.scss'

const plugins = [
  QIcon,
  QTree,
  QCheckBox,
  QButton,
  QInput,
  QFormItem,
  QForm,
  QUpload,
  QCalendar,
  QVirtualScrollList
]

const app = createApp(App)
plugins.forEach(plugin => app.use(plugin))

app.mount('#app')
